<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
<link href="{TPL}css/NewTopFoot.css" rel="Stylesheet" type="text/css">
<link type="text/css" rel="stylesheet" href="{TPL}css/AddItemPanel.css">
<link href="{TPL}css/jifen.css" rel="Stylesheet" type="text/css">
<link type="text/css" id="styleName" rel="stylesheet" href="{TPL}css/orange/color.css"/ > 
<script type="text/javascript" src="{TPL}js/jquery-1.4.1.min.js"></script>
<script type="text/javascript" src="{TPL}js/jQuery.Extend.js"></script>
<script src="{TPL}js/jQuery.Drag.min.js" type="text/javascript"></script>
<script type="text/javascript" src="{TPL}js/jquery.cookies.2.1.0.min.js"></script>
<script src="{TPL}js/Gobal.js" type="text/javascript"></script>
<script type="text/javascript" src="{TPL}js/wdggcGobal.js"></script>
<script src="images/js/calendar/js/jscal2.js"  language="javascript" charset="utf-8"></script>
<script src="images/js/calendar/js/lang/cn.js" language="javascript" charset="utf-8"></script>
<link rel="stylesheet" type="text/css" href="images/js/calendar/css/jscal2.css" />
	
    <style type="text/css">


.pages {float:right;height:25px;margin:15px 0 0 0;display:inline;}
.pages li{list-style-type: none;}
.pages  a{text-decoration:none;}
.pages li{
border:1px solid #AAAAAA;color:#666666;display:inline;float:left;height:20px;line-height:20px;margin-left:2px;padding:0 5px;text-decoration:none;}
.pages li {border:1px solid #DDDDDD;color:#CCC;font-family:"simsun";}
.pages li:hover {background:#FFEDE1;border:1px solid #FF9900;}
.pages .current {background:#FFEDE1;border:1px solid #FF6600;color:#FF0000;}
.pages em {color:#999999;display:inline;float:left;height:22px;line-height:22px;margin-left:5px;}
    </style><title>
	My Points -{$cfg_site_name}
</title></head>

<body>




    <form id="aspnetForm" action="ShoppingRecords.aspx?t=1" method="post" name="aspnetForm">


{template 'header'}
    
    <div class="admin">
        <div class="ding">
            <div class="shouye">
                <a href="{url_m.php}" title="我的会员中心"></a>
            </div>
            <div class="lb">
                <div class="weizhi">
                      <b>Your position：</b><a href="{url_m.php}">Member Center</a><span>&gt;</span>My Points
                  </div>
                
                <div class="shezhi">
                    <p>
                        <a href="{url_m.php}">Member Center</a><span>|</span>ThemeSet：</p>
      <ul>
                        <li onClick="changeStyle('orange')" class="mypanliS1"></li>
                        <li onClick="changeStyle('grey')" class="mypanliS2"></li>
                        <li onClick="changeStyle('blue')" class="mypanliS3"></li>
                    </ul>
                </div>
            </div>
        </div>

		
{template 'member_left'}
        
    <div class="fill">
        <div class="jifen_top">
            <div class="photo face">
                <img onerror="this.src='{TPL}images/noimg120.gif'" alt="wsl881202" src="{$_USERS['face']}">
            </div>
            <div class="huiyuan">
                <h2>
                    hellow！{$_USERS['showname']}</h2>
                <div class="shuzhi">
                    <ul>
                        <li>Member Level：{$UTYPENAME[$_USERS['utype']]}</li>
                        <li>Integral：<span>{$_USERS['scores']}</span></li>
                    </ul>
                    <a href="{url_m.php?name=coupon&action=getcoupon}">Exchange</a>
                </div>
                <p>
                    Two points can be exchanged face value of coupons can be offset service charges！</p>
            </div>
            <div class="wenti">
                <div class="ji_lm">
                    <h2>
                        积分Q&amp;A</h2>
                    <a target="_blank" href="{url_help.php}">More…</a></div>
                <ul>
                {php $helparray=helplist(4,'')}
				{loop $helparray $r}
                    <li><a target="_blank" href="{url_help.php?action=view&id=$r['aid']}">{$r['title']}</a></li>
				{/loop}
					
					
                </ul>
            </div>
        </div>
        <div class="jf_xz">
            <ul>
                <li><a href="m.php?name=scorerecords&type=0" index="0" {if empty($type)}class="o"{/if}>
                    Points Record</a></li>
                <li><a href="m.php?name=scorerecords&type=2" index="2" {if $type==2}class="o"{/if}>
                    Access points</a></li>
                <li><a href="m.php?name=scorerecords&type=1" index="1" {if $type==1}class="o"{/if}>
                    Consumption points</a></li>
            </ul>
            
            
        </div>
        <div class="jifen">
            <div class="time">
                <label>
                    Start：</label><div class="riqi">
                        <input type="text" value="" id="startDate" readonly="readonly" autocomplete="off" class="hasDatepick"><img class="datepick-trigger" src="{TPL}images/guojia.gif" alt="..." title="..." id="startDatebtn">
                    </div>
                <label>
                    Deadline：</label><div class="riqi">
                        <input type="text" value="" id="endDate" readonly="readonly" autocomplete="off" class="hasDatepick"><img class="datepick-trigger" src="{TPL}images/guojia.gif" alt="..." title="..." id="endDatebtn">
                    </div>
                <input type="button" onClick="search()" value="See" class="chakan">
            </div>
            
            <div class="biao">
                <table>
                    <tbody><tr>
                        <th class="w1">
                            time
                        </th>
                        <th class="w2">
                            cause
                        </th>
                        <th class="w3">Num</th>
                    </tr>
 
 
 
 {loop $dataarray $r}
                    <tr>
                        <td class="w1">
                            {date('Y-m-d H:i:s',$r['addtime'])}
                        </td>
                        <td class="w2">
                            {$r['remark']}
                        </td>
                        <td class="w3">
                            <span>{echo $r['score']>0?'+':'';}{$r['score']}</span>
                        </td>
                    </tr>
 
{/loop}

 
                </tbody></table>
                <div class="p">
                    {echo pagelist($total,$pagesize,$page,"");}
                </div>
            </div>
            
        </div>
    </div>

    <script type="text/javascript">
      var cal = Calendar.setup({
          onSelect: function(cal) { cal.hide() },
          showTime: true
      });
      cal.manageFields("startDatebtn", "startDate", "%Y-%m-%d");
	  cal.manageFields("endDatebtn", "endDate", "%Y-%m-%d");
	  
        function search() {
            var url = "m.php?name=scorerecords&type=" + $(".jf_xz .o").attr("index");
            if ($("#startDate").val().length > 0)
                url += ("&amp;s=" + encodeURI($("#startDate").val()));
            if ($("#endDate").val().length > 0)
                url += ("&amp;e=" + encodeURI($("#endDate").val()));
            window.location = url;
        }
    </script>


        <div class="yj">
        </div>
    </div>

    
{template 'footer'}

    </form>
</body>
</html>